package hn.cch.feature.stream;

import java.util.Random;

public class ElementEntity {


    private String index;
    private String order;
    private String group;


    public static ElementEntity getEntity() {
        ElementEntity entity = new ElementEntity();

        Random random = new Random();
        int i = random.nextInt(9);
        System.out.println(i);
        if (i > 5) {
            try {
                throw new Exception("message");
            } catch (Exception e) {
                return null;
            }
        }
        return entity;

    }


    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }
}
